﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceptionEdit.aspx.cs" Inherits="Web.ReceptionEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <base target="_self" />
    <meta content="ie=7" http-equiv="x-ua-compatible">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <script src="Content/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="Scripts/easy_validator.pack.js" type="text/javascript"></script>
    <link href="Styles/Style01.css" rel="stylesheet" type="text/css" />
    <link href="Styles/validate.css" rel="stylesheet" type="text/css" />
    <style>
        html{ overflow-x: hidden;}
        .Wdate{height: 16px;}
        input[type=text], textarea
        {
            width: 100%;
            margin-left: -1px;
            color: #0099cb;
        }
        textarea{overflow-y: hidden;}
        table.s1 td
        {
            padding: 0 1px;
            height: 24px;
        }
        .tdLeft{text-align: left;}
        .divDdl
        {
            position: relative;
            border: 1px solid #778899;
            width: 135px;
            height: 19px;
            overflow: hidden;
        }
        select
        {
            position: relative;
            left: -2px;
            top: -2px;
            width: 138px;
            line-height: 18px;
            border: 0px; /*color:#909993;*/
        }
        /*Start:兼容ie6的样式*//*End:兼容ie6的样式*/
    </style>
    <script type="text/javascript" language="javascript">
        $(function () {
            $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
            $("textarea").each(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
            $("textarea").keydown(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
            $("#btnSave").click(function () { return formValidate(); });
            $("#btnSubmit").click(function () { return formValidate(); });
        });
        function formValidate() {
            var isSubmit = true;
            $("form").find("[reg],[url]:not([reg])").each(function () {
                if (!validate($(this), this.tagName)) {
                    isSubmit = false;
                }
            });
            if (!isSubmit) {
                alert("请确认'红字或红框'处的输入正确!");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table class="s1">
        <tr><td>表单编号</td><td><%=reqReception.FormNo%></td><td>申请时间</td><td><%=reqReception.ReqDate.ToString("yyyy-MM-dd HH:mm:ss")%></td></tr>
        <tr><td>申请人</td><td><%=empName%></td><td></td></tr>
        <tr>
            <td>客户名称</td>
            <td><input id="Customer" runat="server"/></td>
            <td>来访人数</td>
            <td><input id="CustomerCnt" runat="server"/></td>
        </tr>
        <tr>
            <td>客户地址</td>
            <td colspan="3"><input id="CustomerAddr" runat="server"/></td>
        </tr>
        <tr>
            <td>客户陪同人</td>
            <td colspan="3"><input id="CustomerAccompanies" runat="server"/></td>
        </tr>
        <tr>
            <td>公司陪同人</td>
            <td colspan="3"><input id="CorpAccompanies" runat="server"/></td>
        </tr>
        <tr>
            <td>总人数</td>
            <td><input id="PeopleCnt" runat="server"/></td>
            <td>预计费用</td>
            <td><input id="PreCost" runat="server"/></td>
        </tr>
        <tr>
            <td>用餐标准</td>
            <td><input id="MealStd" runat="server"/></td>
            <td>餐数</td>
            <td><input id="MealCnt" runat="server"/></td>
        </tr>
        <tr>
            <td>住宿标准</td>
            <td><input id="RestaurantStd" runat="server"/></td>
            <td>晚数</td>
            <td><input id="RestaurantCnt" runat="server"/></td>
        </tr>
        <tr>
            <td>用车安排</td>
            <td colspan="3"><input id="VehicleSchedule" runat="server"/></td>
        </tr>
        <tr>
            <td>备注</td>
            <td colspan="3"><textarea id="Cause" runat="server"></textarea></td>
        </tr>
    </table>
<div style="text-align:right;margin-right:24px;margin-top:6px;">
    <asp:button runat="server" text="保存" CssClass="btn" id="btnSave" onclick="btnSave_Click"/>
    <asp:button runat="server" text="提交" CssClass="btn" id="btnSubmit" onclick="btnSubmit_Click"/>
    <input type=button value="关闭" class="btn" onclick="window.close();" />
</div>
    </form>
</body>
</html>